<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>个人信息</title>
    <style>
        .main {
            max-width: 800px;
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .section {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e0e0e0;
        }
        .section:last-child {
            border-bottom: none;
        }
        .section-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
        }
        .info-item {
            margin-bottom: 10px;
            display: flex;
            justify-content: center; /* 水平居中 */
            align-items: center; /* 垂直居中 */
            font-size: 14px;
            color: #666;
            height: 40px; /* 设置固定高度 */
        }
        .info-item span {
            color: #ff4d4f;
        }
        .status {
            color: #52c41a;
            font-weight: bold;
        }
        .edit-button {
            background-color: #1890ff;
            color: white;
            border: none;
            padding: 5px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            margin-left: 700px;
        }
        .edit-button:hover {
            background-color: #40a9ff;
        }
    </style>
</head>
<body>

<div class="main">
    <!-- 基本信息 -->
    <div class="section">
        <div class="section-title">基本信息</div>
        <div class="info-item">
            <span>*</span>用户名：<p id="userAcc"></p>
        </div>
        <div class="info-item">
            <span>*</span>姓名：<p id="userName"></p>
        </div>
        <div class="info-item">
            国家/地区：中华人民共和国
        </div>
        <div class="info-item">
            <span>*</span>证件类型：<p id="paperType"></p>
        </div>
        <div class="info-item">
            <span>*</span>证件号码：<p id="userPapers"></p>
        </div>
        <div class="info-item">
            核验状态：<span class="status">已通过</span>
        </div>
    </div>

    <!-- 联系方式 -->
    <div class="section">
        <div class="section-title">联系方式</div>
        <div class="info-item">
            <span>*</span>手机号：<p id="userPhone"></p> <span class="status">   已通过核验</span>
        </div>
        <div class="info-item">
            邮箱：<p id="userEmail"></p>
        </div>
        <button class="edit-button" type="button"  onclick="safe()">编辑</button>
    </div>

    <!-- 附加信息 -->
    <div class="section">
        <div class="section-title">附加信息</div>
        <div class="info-item">
            <span>*</span>优惠(待)类型：<p id="userType"></p>
        </div>
        <button class="edit-button" type="button" onclick="safe()">编辑</button>
    </div>
</div>

<!-- 加载 JavaScript 文件 -->
<script src="resources/js/usermessage.js"></script>
<script>
    function safe(){
        window.location.href = 'usersafety';
    }
</script>
</body>
</html>